<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            width: 800px;
            height: 600px;
            border: 1px solid green;
            margin: 0 auto;
        }
        .box {
            width: 50px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            background-color: pink;
            border-radius: 50%;
        }

        /* 关键帧 */
        @keyframes donghua {
            /* 起始帧 */
            0% {
                transform: translate(0,0) rotate(0);
            }
            /* 第二帧 */
            25% {
                transform: translate(750px,0) rotate(-90deg);
            }
            /* 第三帧 */
            50% {
                transform: translate(750px, 550px) rotate(-180deg);
            }
            /* 第四帧 */
            75% {
                transform: translate(0, 550px) rotate(-270deg);
            }
            /* 第五帧 */
            100% {
                transform: translate(0,0) rotate(-360deg);
            }
        }

        .box {
            animation: donghua 10s linear 0s 3 forwards;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">box</div>
    </div>
</body>
</html>